﻿using System.Collections.Generic;
using Abp.AutoMapper;
using Hicap.AuthorizationServer.Core.Caches.Sys;
using Hicap.AuthorizationServer.Sys.DTO.AuthObjects;
using Hicap.AuthorizationServer.Sys.DTO.Roles;

namespace Hicap.AuthorizationServer.Sys.DTO.Users
{
    public class UserAuthListDto
    {
        [AutoMap(typeof(UserCacheItem))]
        public UserListDto User { get; set; }

        [AutoMap(typeof(List<RoleCacheItem>))]
        public List<RoleListDto> Roles { get; set; }

        [AutoMap(typeof(List<AuthObjectCacheItem>))]
        public List<AuthObjectListDto> AuthObjects { get; set; }
    }
}